package com.whj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whj.domain.dto.AddArticleDto;
import com.whj.domain.entity.Article;
import com.whj.domain.response.ResponseResult;
import com.whj.domain.vo.ArticleDetailVo;
import com.whj.domain.vo.ArticleListVo;
import com.whj.domain.vo.PageVo;

import java.util.List;

/**
 * @Auther: wanghaijun
 * @Date: 2023/5/21 - 05 - 21 - 22:07 
 * @Description: com.whj.service
 */

public interface ArticleService extends IService<Article> {

    ResponseResult<Article> hotArticleList();

    ResponseResult<ArticleListVo> articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult<ArticleDetailVo> getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult<PageVo> selectByTitleAndSummary(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult<ArticleDetailVo> articleDetail(Long id);

    ResponseResult updateArticle(AddArticleDto addArticleDto);

    ResponseResult deleteArticle(List<String> id);
}
